<!-- 首页头部 -->
<template>
  <div class="topBar">
    <div class="flexBox">
      <div class="left">
        <a href="index.html"><img src="src/assets/logo.png" class="img-fluid" alt=""></a>
      </div>
    </div>
    <div class="middle">
      <a>泽慧果蔬商城</a>
    </div>
    <div class="right">
      <van-icon name="search" />
    </div>
  </div>
</template>

<script setup lang="ts">
</script>

<style lang="scss">
.topBar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 2100;
  .flexBox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    .left {
      margin-left: 20px;
      font-size: 24px;
    }
    .middle {
      text-align: center;
      color: rgb(216, 13, 13);
      font-size: 20px;
      width: 180px;
    }
    .right {
      margin-right: 20px;
      font-size: 24px;
    }
  }
}</style>
